package day12_coll.demo01;

import java.util.TreeSet;

public class Demo02_TreeSet {
    public static void main(String[] args) {
        TreeSet<Object> objects = new TreeSet<>();
        objects.add("a");
        objects.add("c");
        objects.add("d");
        objects.add("b");
        System.out.println(objects);//自然排序
    }
}
